package com.jl.js.filepath;

import java.io.File;

public class NormalFilePath implements IJsFilePath {

	private String name;

	public NormalFilePath(String scriptName) {
		this.name = FilePathUtil.replaceAllAndRemoveEndSegment(scriptName);
	}

	@Override
	public File getFile() {
		return new File(getAbsolutePath());
	}

	@Override
	public String getAbsolutePath() {
		return name;
	}

}
